package com.mxt.record.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author mxt
 * @since 2023-06-12
 */
@TableName("ci_cord")
public class Cord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报警编号
     */
    @TableId(value = "idrecord", type = IdType.AUTO)
    private Integer idrecord;

    /**
     * 报警类型
     */
    private String policeType;

    /**
     * 设备名称
     */
    private String equipmentname;


    @TableField(value = "equipmentSN")
    private String equipmentSN;

    /**
     * 报警时间
     */

    private LocalDate begintime;

    /**
     * 处理时间
     */

    private LocalDate endtime;

    /**
     * 处理状态
     */
    private String statue;

    public Integer getIdrecord() {
        return idrecord;
    }

    public void setIdrecord(Integer idrecord) {
        this.idrecord = idrecord;
    }

    public String getPoliceType() {
        return policeType;
    }

    public void setPoliceType(String policeType) {
        this.policeType = policeType;
    }

    public String getEquipmentname() {
        return equipmentname;
    }

    public void setEquipmentname(String equipmentname) {
        this.equipmentname = equipmentname;
    }

    public String getEquipmentSN() {
        return equipmentSN;
    }

    public void setEquipmentSN(String equipmentSN) {
        this.equipmentSN = equipmentSN;
    }

    public LocalDate getBegintime() {
        return begintime;
    }

    public void setBegintime(LocalDate begintime) {
        this.begintime = begintime;
    }

    public LocalDate getEndtime() {
        return endtime;
    }

    public void setEndtime(LocalDate endtime) {
        this.endtime = endtime;
    }

    public String getStatue() {
        return statue;
    }

    public void setStatue(String statue) {
        this.statue = statue;
    }

    @Override
    public String toString() {
        return "Cord{" +
                "idrecord=" + idrecord +
                ", policeType=" + policeType +
                ", equipmentname=" + equipmentname +
                ", equipmentSN=" + equipmentSN +
                ", begintime=" + begintime +
                ", endtime=" + endtime +
                ", statue=" + statue +
                "}";
    }
}
